package com.linwen.javase.desgin_pattern.action.chain;

/**
 * @ClassName ChainTest
 * @Description
 * @Author lin
 * @Date 2022/6/26 下午10:01
 * @Version V1.0
 */
public class ChainTest {
    public static void main(String[] args) {
        Handler handler = new FirstHandler();
        handler
                .connect(new SecondHandler())
                .connect(new ThirdHandler());
        handler.handle();
    }
}
